package com.lagou.demo03.service;

import com.lagou.demo03.dao.ClassDao;
import com.lagou.demo03.factory.ClassDaoFactory;
import com.lagou.demo03.model.Class;

public class ClassService {
    private ClassDao classDao;
    public ClassService(){
        this.classDao = ClassDaoFactory.getClassDao();
    }
    /**
     * 自定义成员方法实现根据参数指定的Class对象来调用DAO层实现信息插入功能
     */
    public Class classItemService(Class cls){return classDao.classItem(cls);}

}
